package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductSkuMapper {
    void deleteByProductId(Long productId);

    void saveBatch(List<ProductSku> productSkuList);

    List<ProductSku> selectByProductId(Long productId);

    void updateById(ProductSku productSku);

    void updateStatusByProductId(@Param("productId") Long productId,@Param("status") Integer status);
}
